<?php


namespace app\controllers;


use app\models\request\ReqDel;
use app\service\TypeService;

class TypeDeleteController extends BaseJsonController
{
    /**
     * @param $req ReqDel
     * @param $userInfo
     * @return bool|mixed
     * @throws \app\exception\OaException
     */
    public function doService($req, $userInfo)
    {
        $s = new TypeService();
        return $s->del($req);
    }


    /**
     * @return ReqDel
     */
    protected function injectionReq()
    {
        return new ReqDel();
    }


}